package com.tllq.zhongkang.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tllq.zhongkang.entity.OrderDetail;
import com.tllq.zhongkang.mapper.OrderDetailMapper;
import com.tllq.zhongkang.service.OrderDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class OrderDetailServiceImpl extends ServiceImpl<OrderDetailMapper, OrderDetail> implements OrderDetailService {

    @Autowired
    OrderDetailMapper orderDetailMapper;

    @Override
    public List<OrderDetail> findByTime(String startTime, String endTime) {
        return orderDetailMapper.findByTime(startTime,endTime);
    }
}
